


export default class ModalAction {

    constructor(parent, context) {
        this.comp = context
    }
    
    updateStaffAreaMap = (data) => {
        return this.comp.props.dispatch({
            type: 'sca/updateStaffAreaMap',
            payload: data
        });
    }

    getMainTableData = (data) => {
        return this.comp.props.dispatch({
            type: 'sca/getMainTableData',
            payload: data
        });
    }

    modelDoExport = (data) => {
        return this.comp.props.dispatch({
            type: 'sca/doExport',
            payload: data,
            header: {
                'Content-Type': 'multipart/form-data'
            }
        });
    }

}